﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DetailFlightIn.ascx.cs" Inherits="Module_DetailFlightIn" %>



    



    <table id="tblDetailFlightInDay">
        <tr>
            <td id="tdHeaderDetailFlightInDay">
                Thông tin chuyến bay
            </td>
        </tr>
        <tr>
            <td id="tdGV">           
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                Width="941px" BackColor="White" BorderColor="#CC9966" BorderStyle="None" 
                    BorderWidth="1px" CaptionAlign="Top" CellPadding="4">
                    <Columns>
                            <asp:TemplateField HeaderText="Khởi hành">
                           <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"departure" )%><br /><%#DataBinder.Eval(Container.DataItem,"startTime")%>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Đến">
                            <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"arrival" ) %><br /><%#DataBinder.Eval(Container.DataItem,"endTime")%>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Mã chuyến bay">
                            <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"flightID" ) %><br /><%#DataBinder.Eval(Container.DataItem,"planeID")%>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày">
                            <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"departureDate" ) %>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Khuyến mại">
                            <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"promotionsID" )%>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Giá">
                            <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"price" ) %>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Khoảng cách">
                            <ItemTemplate>
                           <%#DataBinder.Eval(Container.DataItem,"miles" ) %>
                           </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Thao tác">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbDV" runat="server" onclick="lbDV_Click">Đặt vé</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <SortedAscendingCellStyle BackColor="#FEFCEB" />
                    <SortedAscendingHeaderStyle BackColor="#AF0101" />
                    <SortedDescendingCellStyle BackColor="#F6F0C0" />
                    <SortedDescendingHeaderStyle BackColor="#7E0000" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <table id="tblDV">
                    <tr>
            <td id="tdDV1">
                
                <asp:DetailsView ID="DetailsView1" Width="100%" runat="server" 
                    AutoGenerateRows="False" BorderWidth="0px" BorderColor="White" 
                    >
                    <Fields>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table class="style1">
                                    <tr>
                                        <td>
                                            Giới Thiệu:</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Xuất phát:<%# DataBinder.Eval(Container, "DataItem.airportName")%>,
                                            <%# DataBinder.Eval(Container, "DataItem.cityName")%>,<%# DataBinder.Eval(Container, "DataItem.countryName")%></td>
                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            <%# DataBinder.Eval(Container, "DataItem.countryInfo")%> </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Fields>
                    
                </asp:DetailsView>
                
            </td>
        </tr>
        <tr>
            <td id="tdDV2">
                
                
                
                <asp:DetailsView ID="DetailsView2" Width="100%" runat="server" 
                    AutoGenerateRows="False" BorderWidth="0px" BorderColor="White" 
                    >
                    <Fields>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <table class="style1">
                                    <tr>
                                        <td>
                                            Đến:<%# DataBinder.Eval(Container, "DataItem.airportName")%>,
                                            <%# DataBinder.Eval(Container, "DataItem.cityName")%>,<%# DataBinder.Eval(Container, "DataItem.countryName")%></td>
                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            <%# DataBinder.Eval(Container, "DataItem.countryInfo")%></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Fields>
                </asp:DetailsView>
                
                
                
            </td>
        </tr>
                </table>
            </td>
        </tr>
    </table>


